import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import helpRoutes from './help'
import loginRoutes from './login'
import personalRoutes from './personal'
import workbenchRoutes from './workbench'

const routes: Array<RouteRecordRaw> = [
  ...loginRoutes,
  ...workbenchRoutes,
  ...helpRoutes,
  ...personalRoutes
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
